package com.tuananh.radnom.service.config.impl;

import java.util.ArrayList;

import com.tuananh.radnom.model.NetConn;
import com.tuananh.radnom.model.NetInterface;
import com.tuananh.radnom.persist.imp.xml.NetConnXmlDAO;
import com.tuananh.radnom.service.config.INetConnService;

public class NetConnService implements INetConnService{
	NetConnXmlDAO connDAO;
	public void setConnDAO(NetConnXmlDAO connDAO) {
		this.connDAO = connDAO;
	}

	public boolean persit() {
		// TODO Auto-generated method stub
		return connDAO.persit();
	}

	public boolean add(NetInterface parent, NetInterface child) {
		// TODO Auto-generated method stub
		return connDAO.add(parent, child);
	}

	public boolean add(NetConn netConn) {
		// TODO Auto-generated method stub
		return connDAO.add(netConn);
	}

	public boolean update(NetConn netConn) {
		// TODO Auto-generated method stub
		return connDAO.update(netConn);
	}

	public boolean remove(String name) {
		// TODO Auto-generated method stub
		return connDAO.remove(name);
	}

	public ArrayList<NetConn> getAll() {
		// TODO Auto-generated method stub
		return connDAO.getAll();
	}

	public NetConn getByName(String name) {
		// TODO Auto-generated method stub
		return connDAO.getByName(name);
	}

}
